{extend name="$adminPage"}

{block name="content"}
<span class="x-red"><b>注意！</b></span>所有后台控制器需继承\yunj\Controller。
<pre class="layui-code">
namespace yunj\app\demo\controller;

class Index extends \yunj\Controller {

    public function welcome() {
        return $this->view();
    }

}
</pre>
{/block}